﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Computer//电脑
    {
        private string brand;//品牌
        private IUSB usb1;//第一个接口
        private IUSB usb2;//第二个接口
        public string Brand{ get; set; }//属性
        internal IUSB Usb1 { get; set; }//属性
        internal IUSB Usb2 { get; set; }//属性
        public Computer(string brand)//有参
        {
            this.brand = brand;
        }
        public void Strat()
        {
            Console.WriteLine("{0}开机中....", this.Brand);
            Console.WriteLine("{0}开机成功", this.Brand);
        }
        public void End()
        {
            Console.WriteLine("{0}关机中....", this.Brand);
            Console.WriteLine("{0}关机成功", this.Brand);
        }

    }
}
